from PySide6.QtCore import QThread, Signal


class ThreadBase(QThread):
    error = Signal(str)

    def __init__(self, parent=None):
        super().__init__(parent)

    def set_value(self, *args, **kwargs):
        raise NotImplementedError('线程缺少赋值函数')
